const state = () => ({
    NUM: '',
    DETAIL: '',
    UPLOADINFO: {},
    ADDRESS: {}
})

const getters = {}

const mutations = {
    //  获取采购数量
    SET_NUM(state, NUM) {
        state.NUM = NUM
    },
    // 获取采购的终端信息
    SET_DETAIL(state, VALUE) {
        state.DETAIL = VALUE
    },
    SET_UPLOADINFO(state, VALUE) {
        state.UPLOADINFO = VALUE
    },
    SET_ADDRESS(state, VALUE) {
        state.ADDRESS = VALUE
    }
}

const actions = {
    async GetNum({ commit }, value) {
        commit('SET_NUM', value)
    },
    async GetDetail({ commit }, value) {
        commit('SET_DETAIL', value)
    },
    async GetAddress({ commit }, value) {
        commit('SET_ADDRESS', value)
    },
    async GetUploadInfo({ commit }, value) {
        commit('SET_UPLOADINFO', value)
    }
}

export default {
    namespaced: true,
    state,
    getters,
    actions,
    mutations
}
